package org.jsola.hr.dao;

import org.apache.ibatis.annotations.Param;
import org.jsola.hr.entity.ChildCompanyDO;
import org.jsola.hr.entity.GroupCompanyDO;
import org.jsola.orm.mapper.IJsolaMapper;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * 用工单位分组
 *
 * @author zhr
 */
@Repository("hrChildCompanyDAO")
public interface IChildCompanyDAO extends IJsolaMapper<ChildCompanyDO> {

    List<ChildCompanyDO> groupTreeIds(@Param("groupIds") List<String> groupIds, @Param("siteId") String siteId);

    List<ChildCompanyDO> findTreeByParentId(String parentId);

    List<ChildCompanyDO> findTreeByParentIdSiteId(@Param("parentId")String parentId, @Param("siteId")String siteId);
}

